package com.xxyf.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.apache.ibatis.annotations.Mapper;

import java.sql.Timestamp;

@Getter
@Setter
@Accessors(chain = true)
@TableName("reply")
@Data
@ApiModel(value = "回复表", description = "回复表")
@Mapper
public class Reply {
  @TableId(value = "id", type = IdType.AUTO)
  private long id;
  @ApiModelProperty("用户id")
  @TableField("userid")
  private long userid;
  @TableField("star")
  @ApiModelProperty("点赞")
  private Long star;
  @ApiModelProperty("父类用户名")
  @TableField("pusername")
  private String pusername;
  @ApiModelProperty("用户名")
  @TableField("username")
  private String username;
  @ApiModelProperty("头像")
  @TableField("icon")
  private String icon;
  //  是否点赞
  @TableField(exist = false)
  private Boolean praise;
  @ApiModelProperty("留言")
  @TableField("msg")

  private String msg;
  @ApiModelProperty("留言id")
  @TableField("messageid")
  private Long messageid;

  @ApiModelProperty("乐观锁")
  @TableField("version")
  @Version
  private Integer version;

  @ApiModelProperty("创建时间")
  @TableField("gtm_create")
  private Timestamp gtmCreate;

  @ApiModelProperty("更新时间")
  @TableField(value = "gtm_modifide", fill = FieldFill.INSERT_UPDATE)
  private Timestamp gtmModifide;

  @ApiModelProperty("删除")
  @TableField("deleted")
  @TableLogic
  private Integer deleted;


}
